<?php

class FileHelper 
{
	public function writeContent($sFilePath, $sContent, $sMode = 'w+')
	{
		$oFileHandle = fopen($sFilePath, $sMode);
		fwrite($oFileHandle, $sContent);
		fclose($oFileHandle);
	}
	
	public function readContent($sFilePath)
	{
		$oFileHandle = fopen($sFilePath, 'r');
		$sContents = fread($oFileHandle, filesize($sFilePath));
		fclose($oFileHandle);
		
		return $sContents;
	}
}